//
//  NFTool.m
//  onlineCustoSDK
//
//  Created by Mac on 2017/11/23.
//  Copyright © 2017年 com.netinfosz. All rights reserved.
//

#import "NFTool.h"

@implementation NFTool
- (id)init
{
    self=[super init];
    if(self)
    {
    }
    return self;
}
+(NSString*)getCurrentDate
{
    NSString *timeStr=nil;
    NSDate *date=[NSDate date];
    NSDateFormatter *formatter=[[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"yy/MM/dd HH:mm:ss"];
    timeStr=[formatter stringFromDate:date];
    return timeStr;
}
+(NSString*)getTimestamp
{
    NSTimeInterval interval = [[NSDate date] timeIntervalSince1970] * 1000;
    NSInteger timeStamp=(NSInteger)interval;
    NSString *timeStampStr=[NSString stringWithFormat:@"%ld",timeStamp];
    return timeStampStr;
}
@end
